package com.mgq.netty.chat.message;


import lombok.Data;

/**
 * @author MaGuangQi
 * 登录请求消息,包含用户名,密码和昵称
 * @date 2021-12-07 10:00
 **/
@Data
public class LoginRequestMessage extends Message {
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;


    public LoginRequestMessage(String username, String password) {
        this.username = username;
        this.password = password;
    }

    @Override
    public int getMessageType() {
        return LoginRequestMessage;
    }
}
